package com.fx.common;

import javafx.stage.Stage;

import java.util.concurrent.atomic.AtomicReference;

public class RootStage {

    private final static AtomicReference<Stage> ROOT_STAGE = new AtomicReference<>();

    public static void saveRoot(Stage root){
        ROOT_STAGE.set(root);
    }

    public static Stage getRoot(){
        return ROOT_STAGE.get();
    }

}
